<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template/DefaultTemplate.xhtml">
        <ui:define name="content">
            <h:form rendered="#{loginBacking.editSystemUser}">
                <p:panel header="Confirmation">

                    <p:growl id="growl" sticky="true" showDetail="true"/>

                    <h:panelGrid id="confirmation" columns="2" columnClasses="label, value">
                        <h:outputText value="#{bundle.ViewSystemUserEntityLabel_name}"/>
                        <h:outputText value="#{systemUserEntityController.selected.name}" title="#{bundle.ViewSystemUserEntityTitle_name}"/>

                        <h:outputText value="#{bundle.ViewSystemUserEntityLabel_title}"/>
                        <h:outputText value="#{systemUserEntityController.selected.title}" title="#{bundle.ViewSystemUserEntityTitle_title}"/>

                        <h:outputText value="#{bundle.ViewSystemUserEntityLabel_firstName}"/>
                        <h:outputText value="#{systemUserEntityController.selected.firstName}" title="#{bundle.ViewSystemUserEntityTitle_firstName}"/>

                        <h:outputText value="#{bundle.ViewSystemUserEntityLabel_lastName}"/>
                        <h:outputText value="#{systemUserEntityController.selected.lastName}" title="#{bundle.ViewSystemUserEntityTitle_lastName}"/>

                        <h:outputText value="#{bundle.ViewSystemUserEntityLabel_department}"/>
                        <h:outputText value="#{systemUserEntityController.selected.department}" title="#{bundle.ViewSystemUserEntityTitle_department}"/>

                        <h:outputText value="#{bundle.ViewContactEntityLabel_contactNumber}"/>
                        <h:outputText value="#{systemUserEntityController.selected.contact.contactNumber}" title="#{bundle.ViewContactEntityTitle_contactNumber}"/>

                        <h:outputText value="#{bundle.ViewContactEntityLabel_email}"/>
                        <h:outputText value="#{systemUserEntityController.selected.contact.email}" title="#{bundle.ViewContactEntityTitle_email}"/>

                    </h:panelGrid>

                </p:panel>
                <br />
                <h:commandButton value="Submit" actionListener="#{systemUserEntityController.save}" action="#{passwordChangeRequestController.forgetPasswordForwardToViewAccount}">
                    <f:setPropertyActionListener target="#{passwordChangeRequestController.passwordChangeRequestEmail}" value="#{systemUserEntityController.selected.contact.email}" />
                </h:commandButton>
                <h:commandButton action="Register" value="Back">
                    <f:param name="skipvalidation" value="1" />
                </h:commandButton>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
